package org.example.chapter4.service.impl;

import org.example.chapter4.service.HelloService;

/**
 * @author CoderXshuai
 * @date 2020/7/26/0026 13:53
 */

public class HelloServiceImpl implements HelloService {
    @Override
    public void sayHello(String name) {
        if (name == null || name.trim().equals("")) {
            throw new RuntimeException("parameter is null!!!");
        }
        System.out.println("hello " + name);
    }
}
